<%@ Page Language="C#" MasterPageFile="~/MP/Classic.master" AutoEventWireup="true"
    Inherits="ConfigCusto_Process_Default" CodeBehind="Default.aspx.cs" RoleHint="Administrator" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContainer" runat="Server">
    <h2>
        Workflow configuration</h2>
    <p>
        Select the workflow you want to edit.</p>
    <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
        <cc1:TabPanel runat="server" HeaderText="Basic" ID="BasicPanel">
            <ContentTemplate>
                <p>
                    Default workflow processes:</p>
                <div style="text-align: center">
                    <asp:UpdatePanel ID="UpdatePanelBasic" runat="server">
                        <ContentTemplate>
                            <table width="100%">
                                <tr>
                                    <td width="50%" style="border:1px dotted #555; text-align: center; vertical-align: text-top;">
                                    <h2>
                                        <asp:LinkButton ID="ShortWorkflowLinkButton" runat="server" PostBackUrl="" Text="Short Workflow" /></h2><br />
                                        <asp:ImageButton ID="ShortWorkflowImageButton" runat="server" ImageUrl="~/Imx/shortWorkflow.png"
                                            PostBackUrl="" Width="150" style="background-color: Transparent !important" />
                                    </td>
                                    <td width="50%" style="border:1px dotted #555; text-align: center; vertical-align: text-top;">
                                    <h2><asp:LinkButton ID="LongWorkflowLinkButton" runat="server" PostBackUrl="" Text="Long Workflow" /></h2><br />
                                        <asp:ImageButton ID="LongWorkflowImageButton" runat="server" ImageUrl="~/Imx/longWorkflow.png"
                                            PostBackUrl="" Width="150" style="background-color: Transparent !important"/>
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </ContentTemplate>
        </cc1:TabPanel>
        <cc1:TabPanel ID="Advanced" runat="server" HeaderText="Advanced">
            <ContentTemplate>
                
                    <div style="text-align: right; vertical-align: top">
                        <asp:LinkButton ID="AddLinkButton" runat="server" PostBackUrl="~/ConfigCusto/Process/AddWorkflow.aspx">Add Worflow</asp:LinkButton></div>
                   <p>
                    Custom workflow processes: </p>
                <div style="text-align: center">
                    <asp:UpdatePanel ID="UpdatePanelAdvanced" runat="server">
                        <ContentTemplate>
                            <asp:GridView ID="advancedWorkflowsGrid" runat="server" AutoGenerateColumns="False" Width="50%">
                                <Columns>
                                    <asp:HyperLinkField DataNavigateUrlFields="Key" DataNavigateUrlFormatString="EditWorkflow.aspx?workflowDefId={0}"
                                        Text="Detail" />
                                    <asp:BoundField DataField="Value" HeaderText="Workflow name" />
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </ContentTemplate>
        </cc1:TabPanel>
    </cc1:TabContainer>
</asp:Content>
